<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/double-date.css" rel="stylesheet">
    <script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/admin/js/double-date.js"></script>
</head>

<script>
    var url = "/{$Request.module}/supply";
</script>

<body class="gray-bg" >
<div class="wrapper wrapper-content" id="server">
    <style>
        .qiehuan{
            width:120px; height:40px; line-height:40px; font-size:14px; font-weight:bold; color:#333; background-color:#F5F5F6; float:left; margin-right:10px; text-align:center; cursor:pointer;
        }
    </style>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>供应链列表</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-5 m-b-xs">
                            <p style="font-size:15px;">供应链：{$count}家 <a href="{:url('supply/edit')}"><button type="button" class="btn btn-sm btn-primary" id="add" style="margin-right:15px;"><i class="fa fa-plus" style="color:#FFF;"></i>&nbsp;添加供应链接</button></a></p>

                        </div>
                    </div>
                <div class="row">
                    <form action="{:url('supply/search')}" method="post" id="form_search">

                        <div class="col-sm-2" style="float:right;">
                            <div class="input-group">
                                <input type="text" name="keyword" placeholder="名称/手机号/联系人" {if condition="(isset($keyword)) AND ($keyword)"}value="{$keyword}"{/if} class="input-sm form-control" /><span class="input-group-btn">
                                    <button type="submit" class="btn btn-sm btn-primary">搜索</button></span>
                            </div>
                        </div>
                    </form>
                </div>
                <div id="ajaxpagetest">
                    {include file="supply/ajaxpage" /}
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<!-- 全局js -->
<script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>
<script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/admin/js/plugins/validate/jquery.validate.min.js"></script>
<!-- iCheck -->
<script src="__PUBLIC__/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/admin/js/common/admin.js"></script>
<script src="__PUBLIC__/admin/js/common/ajax.js"></script>

<script>

    function supplyinfo(supply_id,obj){

        var infoUrl = url+'/info/supply_id/'+supply_id;
        layer.open({
            type : 2,
            title : '供应链详细资料',
            shadeClose : true,
            shade : 0.5,
            area : ['1000px','650px'],
            content : infoUrl
        });
    }

    function supplyedit(id,obj){
        var editUrl = url+'/edit/supply_id/'+id;
        layer.open({
            type : 2,
            title : '修改入驻供应链基本资料',
            shadeClose : true,
            shade : 0.5,
            area : ['1000px','650px'],
            content : editUrl
        });
    }

    function supplycate(id,obj){
        var url1 = "/{$Request.module}/supply";
        var infoUrl = url1+'/category/sid/'+id;
        layer.open({
            type : 2,
            title : '结算设置',
            shadeClose : true,
            shade : 0.5,
            area : ['1000px','650px'],
            content : infoUrl
        });
    }

    //供应链管理员
    function supplyadmin(id,obj){
        window.location.href='/{$Request.module}/supply_admin/supplylist/supply_id/'+id;
    }

    function cl(){

        parent.location.href= url;

    }

</script>



</body>
</html>